﻿using Kairos.Migrations;
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Kairos.Models
{
    public class Vtom
    {
        public int ID { get; set; }

        [Required]
        [StringLength(50)]
        [Collation(Name = "French_CS_AS")]
        [Index(IsUnique = true)]
        [Display(Name = "Nom")]
        public string Titre { get; set; }
        public string Variables { get; set; }

        [Required]
        [ForeignKey("Doc")]
        [Display(Name = "Document ID")]
        public Nullable<int> DocID { get; set; }

        // Navigation properties 
        public virtual Document Doc { get; set; }
    }
}